package com.itheima.day06.Demo03;

import java.util.HashSet;

public class main {

    public static void main(String[] args) {

        HashSet<Student> stuSet = new HashSet<>();

        stuSet.add(new Student("大咪咪", '女', 20));
        stuSet.add(new Student("露丝", '女', 18));
        stuSet.add(new Student("大咪咪", '女', 20));

        System.out.println(stuSet.size());

        for (Student student : stuSet) {
            System.out.println(student);
        }
    }



}
